package com.telnetnz.ticketdesk.bean.misc;

import java.util.HashMap;
import java.util.Map;

public class JsonMessage {

	public static final int RESULT_SUCCESS = 0;
	public static final int RESULT_INPUT = 1;
	public static final int RESULT_ERROR = 2;

	private int result;
	private String redirect;
	private String token;
	private Map<String, Object> data;
	private Map<String, String> message;

	public JsonMessage() {
		data = new HashMap<String, Object>();
		message = new HashMap<String, String>();
	}

	public void put_data(String key, Object obj) {
		data.put(key, obj);
	}

	public void put_message(String key, String msg) {
		message.put(key, msg);
	}

	public int getResult() {
		return result;
	}

	public void setResult(int result) {
		this.result = result;
	}

	public String getRedirect() {
		return redirect;
	}

	public void setRedirect(String redirect) {
		this.redirect = redirect;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public Map<String, Object> getData() {
		return data;
	}

	public void setData(Map<String, Object> data) {
		this.data = data;
	}

	public Map<String, String> getMessage() {
		return message;
	}

	public void setMessage(Map<String, String> message) {
		this.message = message;
	}

}
